package com.ftg.learn.test1.product1;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 商品类1
 *
 * @author lijiaxin
 * @version 1.0
 * @date 2023/8/9 10:50
 */
@Data
public class ConcreteProductA extends Product{

    public static void show(String name, int price){

        Product product=new Product();
        product.setName(name);
        product.setPrice(price);
        System.out.println("商品"+ product.getName()+"价格"+product.getPrice());

    }

}
